package cn.zyq.ykb.beans.config;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 配置-下载安装包对象 configPackage
 *
 * @author SystemAuth
 * @date 2023-06-15
 */
@Data
@Entity
@Table(name = "`configPackage`")
public class ConfigPackage  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`configPackageID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer configPackageID;
    /**
     * 安装包
     */
    @Column(name = "`packageFile`")
    @ApiModelProperty("安装包")
    private String packageFile;
    /**
     * 安装包名
     */
    @Column(name = "`packageName`")
    @ApiModelProperty("安装包名")
    private String packageName;
    /**
     * 状态1.可用2.不可用
     */
    @Column(name = "`type`")
    @ApiModelProperty("状态1.可用2.不可用")
    private Integer type;
    /**
     * 状态 1.IOS 2.安卓 3.热更新包
     */
    @Column(name = "`state`")
    @ApiModelProperty("状态1.IOS 2.安卓 3.热更新包")
    private Integer state;
    /**
     * 版本号
     */
    @Column(name = "`version`")
    @ApiModelProperty("版本号")
    private String version;
}
